﻿package db;

import java.sql.*;

public class DBConn
{
    public DBConn(){}

    public Connection getConnection() throws SQLException
    {
        Connection con = null;

        try{
            Class.forName("com.sybase.jdbc3.jdbc.SybDriver");//드라이버로딩
            con = DriverManager.getConnection("jdbc:sybase:Tds:58.76.19.47:5000/DMASIASE", "aisase","aisase");
        }catch (ClassNotFoundException ce){
            ce.printStackTrace();
        }

        return con;
    }
}